#include <stdio.h>
#include <stdlib.h>

int main() {

    char checksum = -1;
    char c = 0;

    while ((c = getchar()) != EOF) {
        putchar(c);
        checksum += c;
    }
    printf("%d\n", checksum);
    return 0;
}